package elaborator;

import java.util.Map;

public class Elaborator {

	private Receiver receiver;
	private Sender sender;
	private String planet;
	
	int[] temps;
	int diameter;
	Map<Double, String> elements;
	
//	public Elaborator(Receiver receiver){
////		this.receiver=receiver;
//	}
	
	public void setReceiver(Receiver receiver){
		this.receiver=receiver;
	}
	
	public void setSender(Sender sender){
		this.sender=sender;
	}
	
	public void receiveData(){
		this.planet = receiver.getPlanetName();
		this.temps = receiver.getTemps();
		this.diameter = receiver.getDiameter();
		this.elements = receiver.getComposition();
	}
	
	public void sendData(){
		sender.setPlanetName(planet);
		sender.setTemps(temps);
		sender.setDiameter(diameter);
		sender.setComposition(elements);
	}
	
}
